import request from "../utils/request";

export function geVersionList(params){
    return request({
        url : "/version/list",
        method : "get",
        params
    })
}

export function geVersionDetail(id){
    return request({
        url : "/version/detail/" + id,
        method : "get",
    })
}

export function editVersion(data){
    return request({
        url : "/admin/version/edit",
        method : "post",
        data
    })
}

export function delVersion(params){
    return request({
        url : "/admin/version/del",
        method : "post",
        params
    })
}

export default {
    geVersionList,
    geVersionDetail,
    editVersion,
    delVersion
}